package com.example.mybatis.sqlserver.springbootmybatissqlserver.pojo.dto;

import com.fasterxml.jackson.annotation.JsonProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

/**
 * Created by hzy on 2019/2/19.
 *
 * sample:
 *
 * {
 *   "CategoryId": "sample string 1",
 *   "CategoryPropertyNameId": "sample string 2",
 *   //"CategoryPropertyValueId": "sample string 3",
 *   "PropertyValue": "sample string 4",
 *   "IsShow": true
 * }
 */

public class AddCategoryPropertyValueDTO {

    /**
     * 属性所属的类目id
     */
    @NotNull
    @NotBlank
    @JsonProperty("CategoryId")
    public String categoryId;

    /**
     * 属性值所属的属性名id
     */
    @NotNull
    @NotBlank
    @JsonProperty("CategoryPropertyNameId")
    public String categoryPropertyNameId;

//    @NotNull
//    @NotBlank
//    @JsonProperty("CategoryPropertyValueId")
//    public String categoryPropertyValueId;

    /**
     */
    @NotNull
    @JsonProperty("PropertyValue")
    public String propertyValue;


    /**
     */
    @NotNull
    @JsonProperty("IsShow")
    public Boolean isShow;
}
